<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=e3ZohdqyB0RL98hFOiC29xqh"></script>
		<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="./js/ditu.js"></script>
		<script type="text/javascript" src="[https://api.map.baidu.com/api?type=subway https://api.map.baidu.com/api?type=subway]&v=1.0&ak=您的密钥"></script>
		<link rel="stylesheet" href="./css/index.css" />
		<link rel="stylesheet" href="./css/style.css" />
		<script type="text/javascript" src="./js/jquery1.42.min.js"></script>
		<script type="text/javascript" src="./js/jquery.SuperSlide.2.1.1.js"></script>
		
		<title>联系站长</title>
	</head>

	<body>
		<!--header start-->
		<div id="header">
		<br>	
		<h1 style="display:inline">WYZ的博客主页</h1>		
			<?php 
				session_start();
				if (isset($_COOKIE['usrname'])) {
					# 若记住了用户信息,则直接传给Session
					$_SESSION['usrname'] = $_COOKIE['usrname'];
					$_SESSION['islogin'] = 1;
				}
				if (isset($_SESSION['islogin'])) {
					//已经登录			
					echo "&nbsp;&nbsp;";
					echo "当前用户为:<a href='content_rw.php?id=".$_SESSION['usrname']." '>".$_SESSION['usrname']."</a>";

					echo "&nbsp;/&nbsp;";
					echo "<a href='logout.php'>注销</a>";
				} 
				else {
					echo "&nbsp;&nbsp;";		
					echo "<a href='signin.php'>注册</a>";
					echo "&nbsp;/&nbsp;";
					echo "<a href='login.php'>登录</a>";			
				}
				echo "&nbsp;&nbsp;";		
				echo "<a href='all_usr.php'>所有用户</a>"				
			?>

		</div>
		<!--header end-->

		<!--nav-->
		<div id="nav">
			<ul>
				<li>
					<a href="index.php">首页</a>
				</li>
				<li>
					<a href="about.php">关于站长</a>
				</li>
				<li>
					<a href="reference.php">技术文章</a>
				</li>

				<li>
					<a href="journal.php">个人日记</a>
				</li>

				<li>
					<a href="contact.php">联系站长</a>
				</li>
				<div class="clear"></div>
			</ul>
		</div>
		


		<div id="nav" style="margin-left: 550px;font-family: '微软雅黑';font-size: 15px;">
			<p>地址：华东师范大学</p>
			<p>电话：18101928260</p>
			<p>邮箱：2867797986@qq.com</p>
		</div>
		
		<!--footer start-->
		<div id="footer">
			<p>&reg; WYZ 2019-4-1</p>
			<p>友情链接：
				<a href="http://www.w3school.com.cn/" target="_blank">W3School</a>&nbsp;&nbsp;
				<a href="https://www.nowcoder.com/" target="_blank">牛客网</a>&nbsp;&nbsp;
				<a href="https://www.csdn.net/" target="_blank">CSDN</a>&nbsp;&nbsp;
				<a href="https://www.cnblogs.com/" target="_blank">博客园</a>&nbsp;&nbsp;
				<a href="https://www.oschina.net/" target="_blank">开源中国</a>&nbsp;&nbsp;	
			</p>
		</div>
		<!--footer end-->

		<script type="text/javascript">
			jQuery(".lanmubox").slide({
				easing: "easeOutBounce",
				delayTime: 400
			});
		</script>
		<script type="text/javascript" src="js/nav.js"></script>
	</body>

</html>